package org.meteorshower.employee_depart.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.JdbcType;

import java.io.Serializable;
import java.util.Date;


/**
 * 职位名称，映射完成
 * @table position
 * */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("position")
public class Position implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableField("p_id")
    private Integer pId;
    @TableField("name")
    private String name;
    @TableField("create_date")
    private Date createDate;
    @TableField(value = "enabled",javaType = true, jdbcType = JdbcType.INTEGER)
    private Boolean enabled = true;
}
